package com.example.demo.component.docker.bean;

import com.spotify.docker.client.messages.PortBinding;

import java.util.List;
import java.util.Map;

/**
 * @ClassName create_containerer_param
 * @Description
 * @date 2022/11/7 13:44
 * @Author yanceysong
 * @Version 1.0
 */
public class create_container_param {
    private Map<String, List<PortBinding>> portBindings;
    private String image_version;
    private List<path_map> path_maps;
    private String image_name;
    private String container_name;

    public String getImage_version() {
        return image_version;
    }

    public void setImage_version(String image_version) {
        this.image_version = image_version;
    }

    public Map<String, List<PortBinding>> getPortBindings() {
        return portBindings;
    }

    public void setPortBindings(Map<String, List<PortBinding>> portBindings) {
        this.portBindings = portBindings;
    }

    public List<path_map> getPath_maps() {
        return path_maps;
    }

    public void setPath_maps(List<path_map> path_maps) {
        this.path_maps = path_maps;
    }

    public String getImage_name() {
        return image_name;
    }

    public void setImage_name(String image_name) {
        this.image_name = image_name;
    }

    public String getContainer_name() {
        return container_name;
    }

    public void setContainer_name(String container_name) {
        this.container_name = container_name;
    }

     public static class path_map {
        private String container_path;
        private String host_path;
        private Boolean read_only;

        public String getContainer_path() {
            return container_path;
        }

        public void setContainer_path(String container_path) {
            this.container_path = container_path;
        }

        public String getHost_path() {
            return host_path;
        }

        public void setHost_path(String host_path) {
            this.host_path = host_path;
        }

        public Boolean getRead_only() {
            return read_only;
        }

        public void setRead_only(Boolean read_only) {
            this.read_only = read_only;
        }
    }
}
